home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / xlib06p1.zip / XPLAIN.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  2KB  |  79 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPLAIN - header file
  4. ;
  5. ; This module was written by Tiaan A Geldenhuys
  6. ; geld-ta@mella.ee.up.ac.za
  7. ;
  8. ;-----------------------------------------------------------------------*/
  9.  
  10. #ifndef _XPLAIN_H_
  11. #define _XPLAIN_H_
  12.  
  13.  
  14. #include "xdefs.h"
  15.  
  16. /* FUNCTIONS =========================================================== */
  17.  
  18.  
  19. /* Check for collision between two variable sized plain bitmap structures */
  20.  
  21. char x_check_collision_plain(
  22.   BYTE *VicStruct1,
  23.   int X1,
  24.   int Y1,
  25.   BYTE *VicStruct2,
  26.   int X2,
  27.   int Y2);
  28.  
  29.  
  30. void x_get_plain(          /* Copy a bitmap from planar VRAM to plain SRAM */
  31.   xScreenCoord_t X,
  32.   xScreenCoord_t Y,
  33.   int Bw,
  34.   int Bh,
  35.   xPageHandle_t ScrnOffs,
  36.   BYTE * VicStruct,
  37.   xColor_t ColorMask
  38.   #ifdef __cplusplus
  39.    = 0xFF
  40.   #endif
  41.   );
  42.  
  43.  
  44. void x_pbm_to_plain(         /* Convert from planar bitmap to plain bitmap */
  45.   BYTE * source_pbm,
  46.   BYTE * dest_VicStruct,
  47.   xColor_t ColorMask
  48.   #ifdef __cplusplus
  49.    = 0xFF
  50.   #endif
  51.   );
  52.  
  53.  
  54. void x_bm_to_plain(          /* Convert from linear bitmap to plain bitmap */
  55.   BYTE * source_bm,
  56.   BYTE * dest_VicStruct,
  57.   xColor_t ColorMask
  58.   #ifdef __cplusplus
  59.    = 0xFF
  60.   #endif
  61.   );
  62.  
  63.  
  64. void x_put_plain(   /* Copy a VIC bitmap (variable size) from SRAM to VRAM */
  65.   int X,
  66.   int Y,
  67.   xPageHandle_t ScrnOffs,
  68.   BYTE * VicStruct,
  69.   xColor_t Color);
  70.  
  71.  
  72.  
  73. /* VARIABLES =========================================================== */
  74.  
  75. extern int CollideX;   /* Coordinate of pixel that caused last collision */
  76. extern int CollideY;
  77.  
  78. #endif
  79.